﻿<!--{eval
    $_G['loader']->helper('misc','article');
}-->
{template modoer_header}
<script type="text/javascript">
$(document).ready(function() {
    //弹出浮动层
    $(".J_prowerfloat").powerFloat({reverseSharp:true});
});
</script>
<div id="body">
    <div class="link_path">
        <em>
            <!--{if $access_post}-->
            <span class="icomoon icon-pencil2"></span><a href="{url article/member/ac/article/op/add/role/$role}">投稿</a>
            <!--{/if}-->
            <!--{loop $links $i $link}-->
            <span class="xsplit"> | </span>
            <a href="$link[url]"{if $link[flag]=='article'} style="color:#ff6600;"{/if}>$link[title]</a>
            <!--{/loop}-->
        </em>
        <a href="{url modoer/index}">{lang global_index}</a>
        &raquo;
        <a href="{url article/index}">$MOD[name]</a>
        &raquo;
        {print misc_article::category_path($detail[catid],' &raquo; ',url("article/list/catid/_CATID_"))}
        &raquo;
        正文
        {if $total>1}
        &raquo;
        第$_GET[page]页
        {/if}
    </div>

    <div class="mainrail rail-border-3">

        <div id="article_left">

            <div class="article_detail">
                <h1 class="detail-title">$detail[subject]{if $_GET[page]>1}($_GET[page]){/if}</h1>
                <div class="detail-stat">
                    <span>发表于 {date $detail[dateline]}</span>
                    {if $detail[copyfrom]}<span>来源：$detail[copyfrom]</span>{/if}
                    <span>发布者：{$detail[author]}</span>
                    <span>评论：<a href="#comment">$detail[comments]</a></span>
                    <span>浏览：$detail[pageview]</span>
                    <!--{if $_CFG[sharecode]}-->
                    <a class="J_prowerfloat" href="javascript:;" id="sharecode" rel="sharecode_box"><span class="icomoon icon-newtab" title="分享"></span>分享</a>
                    <div class="sharecode_box" id="sharecode_box">
                        {$_CFG[sharecode]}
                    </div>
                    <!--{/if}-->
                </div>
                <div class="introduce">$detail[introduce]</div>
                <!--{if $detail[picture]}-->
                <div class="content text_center">
                    <img src="{URLROOT}/$detail[picture]" />
                </div>
                <!--{/if}-->
                <div class="content">$detail[content]</div>
                <script type="text/javascript">
                window.onload=function(){
                    $('.content p img').each(function(){
                        if($(this).attr('width')>500 && !$(this).parent().attr('href')) {
                            $(this).css('cursor','pointer');
                            $(this).click(function() {
                                window.open($(this).attr('src'));
                            });
                        }
                    });
                }
                </script>
                <div class="multipage">$multipage</div>
                <div class="digg">
                    <span id="digg_num">$detail[digg]</span>
                    <span id="digg_click"><a href="javascript:;" onclick="article_digg($articleid);">顶一下</a></span>
                    <script type="text/javascript">
                        if(get_cookie('article_digg_$articleid')) {
                            $('#digg_click').html('谢谢支持');
                        }
                    </script>
                </div>
                <div class="operation">
                    <a href="javascript:window.print();">打印本页</a>&nbsp;&nbsp;
                    <a href="javascript:window.close();">关闭窗口</a>&nbsp;&nbsp;
                    <a href="javascript:window.scrollTo(0,0);">返回顶部</a>
                </div>

                <div class="article_nav">
                    <div class="float_left">上一篇：{print:article forward(articleid/$articleid/city_id/$detail['city_id'])}</div>
                    <div class="float_right">下一篇：{print:article next(articleid/$articleid/city_id/$detail['city_id'])}</div>
                    <div class="clear"></div>
                </div>

                <!--{hook 'load_comment', $comment_cfg}-->

            </div>

        </div>

        <div id="article_right">

            <!--{if $detail['sid']}-->
            <script type="text/javascript">loadscript('item');</script>
            <!--{eval $reviewcfg = $_G['loader']->variable('config','review');}-->
            <!--{get:item subject=subject_side(sid/$detail[sid])}-->
            <div class="mainrail" onmouseover="show_subject_side($subject[sid])">
                <h3 class="rail-h-2">
                    <a href="{url item/detail/id/$subject[sid]}"><b style="color:#cc3300">$subject[name]{if $subject[subname]}($subject[subname]){/if}</b></a>
                </h3>
                <div class="subject">
                    <p class="start start{print get_star($subject[avgsort],$reviewcfg[scoretype])}"></p>
                    <div>
                        <span class="font_2">$subject[reviews]</span>点评,
                        <span class="font_2">$subject[guestbooks]</span>留言,
                        <span class="font_2">$subject[pageviews]</span>浏览
                    </div>
                    <!--{if $subject[field_table]}-->
                    <div class="none" id="subject_field_list_$subject[sid]">
                        <table class="subject_field_list" border="0" cellspacing="0" cellpadding="0">
                            $subject[field_table]
                        </table>
                    </div>
                    <!--{/if}-->
                </div>
            </div>
            <div style="border-bottom:1px dashed #ccc;margin:5px;"></div>
            <!--{/get}-->
            <script type="text/javascript">
            var show_sid = 0;
            function show_subject_side (sid) {
                if(show_sid == sid) return;
                if(show_sid) $('#subject_field_list_'+show_sid).slideUp("fast"); ;
                var tbl = $('#subject_field_list_'+sid).slideDown("fast"); 
                show_sid = sid;
            }
            </script>
            <!--{/if}-->

            <div class="mainrail">
                <h4 class="rail-h-2">头条推荐</h4>
                <ul class="rail-list">
                    {get:modoer val=table(table/dbpre_articles/select/articleid,subject,catid,dateline/where/status=1 AND att=1 AND city_id IN (0,$_CITY[aid])/orderby/dateline DESC/row/10)}
                    <li>
                        <a href="{url article/detail/id/$val[articleid]}" title="$val[subject]">{sublen $val[subject],15}</a>
                    </li>
                    {/get}
                </ul>
            </div>

            <div class="mainrail">
                <h4 class="rail-h-2">热门评论</h4>
                <ul class="rail-list">
                    {get:modoer val=table(table/dbpre_articles/select/articleid,subject,comments,dateline/where/comments>0 AND status=1 AND city_id IN (0,$_CITY[aid])/orderby/comments DESC/row/10)}
                    <li>
                        <cite>$val[comments]&nbsp;评论</cite>
                        <a href="{url article/detail/id/$val[articleid]}" title="$val[subject]">{sublen $val[subject],15}</a></li>
                    {/get}
                </ul>
            </div>
        </div>

        <div class="clear"></div>
    </div>

</div>
<!--{eval footer();}-->